<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>airline-res: AirlineRes::UserRecord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">airline-res
   
   </div>
   <div id="projectbrief">A prototype airline flight booking system</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>AirlineRes</b>      </li>
      <li class="navelem"><a class="el" href="class_airline_res_1_1_user_record.html">UserRecord</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">AirlineRes::UserRecord Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="AirlineRes::UserRecord" --><!-- doxytag: inherits="AirlineRes::Record" -->
<p>Class to store and operate upon the data that comprises a system user.  
 <a href="class_airline_res_1_1_user_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_user_record_8h_source.html">UserRecord.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for AirlineRes::UserRecord:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_user_record__inherit__graph.png" border="0" usemap="#_airline_res_1_1_user_record_inherit__map" alt="Inheritance graph"/></div>
<map name="_airline_res_1_1_user_record_inherit__map" id="_airline_res_1_1_user_record_inherit__map">
<area shape="rect" id="node2" href="class_airline_res_1_1_record.html" title="{AirlineRes::Record\n|# m_id\l|+ Record()\l+ ~Record()\l+ LoadRecord()\l+ WriteRecord()\l+ GetID()\l}" alt="" coords="19,5,149,141"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for AirlineRes::UserRecord:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_user_record__coll__graph.png" border="0" usemap="#_airline_res_1_1_user_record_coll__map" alt="Collaboration graph"/></div>
<map name="_airline_res_1_1_user_record_coll__map" id="_airline_res_1_1_user_record_coll__map">
<area shape="rect" id="node2" href="class_airline_res_1_1_record.html" title="{AirlineRes::Record\n|# m_id\l|+ Record()\l+ ~Record()\l+ LoadRecord()\l+ WriteRecord()\l+ GetID()\l}" alt="" coords="19,5,149,141"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_airline_res_1_1_user_record-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5182ff92d29750c20582e90183da4973"></a><!-- doxytag: member="AirlineRes::UserRecord::UserRecord" ref="a5182ff92d29750c20582e90183da4973" args="(std::string const &amp;_username, std::string const &amp;_password, bool _isAdmin)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_user_record.html#a5182ff92d29750c20582e90183da4973">UserRecord</a> (std::string const &amp;_username, std::string const &amp;_password, bool _isAdmin)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct record initialised with field values. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">RecordIOResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_user_record.html#aeb5c79149e4974de564f58623cddce73">LoadRecord</a> (std::istream &amp;_stream)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">RecordIOResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_user_record.html#a349c0cd30f657e3f2e22ff9b3681b497">WriteRecord</a> (std::ostream &amp;_stream) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a616f3852a18eee63e75a01bf8c1faa1b"></a><!-- doxytag: member="AirlineRes::UserRecord::GetUsername" ref="a616f3852a18eee63e75a01bf8c1faa1b" args="() const " -->
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>GetUsername</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8926b9fbada35578823df51d5a41b4b3"></a><!-- doxytag: member="AirlineRes::UserRecord::GetPassword" ref="a8926b9fbada35578823df51d5a41b4b3" args="() const " -->
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>GetPassword</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac33a637e4079207633ce58d6eb797306"></a><!-- doxytag: member="AirlineRes::UserRecord::GetIsAdmin" ref="ac33a637e4079207633ce58d6eb797306" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetIsAdmin</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaab4324aa06784d776e887bc8f31cda5"></a><!-- doxytag: member="AirlineRes::UserRecord::SetUsername" ref="aaab4324aa06784d776e887bc8f31cda5" args="(std::string _username)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetUsername</b> (std::string _username)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbe016975a8ce9ab15f548a58728c8bd"></a><!-- doxytag: member="AirlineRes::UserRecord::SetPassword" ref="acbe016975a8ce9ab15f548a58728c8bd" args="(std::string _password)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetPassword</b> (std::string _password)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afdda21f9405541ea481d33f432a27230"></a><!-- doxytag: member="AirlineRes::UserRecord::SetIsAdmin" ref="afdda21f9405541ea481d33f432a27230" args="(bool _isAdmin)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetIsAdmin</b> (bool _isAdmin)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c13dbf22888811362a59838367b4626"></a><!-- doxytag: member="AirlineRes::UserRecord::m_username" ref="a8c13dbf22888811362a59838367b4626" args="" -->
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>m_username</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5920b0e2a6fcd714c468da4997fb6d6f"></a><!-- doxytag: member="AirlineRes::UserRecord::m_password" ref="a5920b0e2a6fcd714c468da4997fb6d6f" args="" -->
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>m_password</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb37be80c0304131e6f504c1f018d3a2"></a><!-- doxytag: member="AirlineRes::UserRecord::m_isAdmin" ref="abb37be80c0304131e6f504c1f018d3a2" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_isAdmin</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class to store and operate upon the data that comprises a system user. </p>

<p>Definition at line <a class="el" href="_user_record_8h_source.html#l00012">12</a> of file <a class="el" href="_user_record_8h_source.html">UserRecord.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aeb5c79149e4974de564f58623cddce73"></a><!-- doxytag: member="AirlineRes::UserRecord::LoadRecord" ref="aeb5c79149e4974de564f58623cddce73" args="(std::istream &amp;_stream)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">Record::RecordIOResult</a> AirlineRes::UserRecord::LoadRecord </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>_stream</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Attempt to load <a class="el" href="class_airline_res_1_1_record.html">Record</a> data from the specified istream.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_stream</td><td>The istream from which to extract record fields.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Implements <a class="el" href="class_airline_res_1_1_record.html#afc47a99151fc262aa4d4b1e27d2c1c93">AirlineRes::Record</a>.</p>

<p>Definition at line <a class="el" href="_user_record_8cpp_source.html#l00019">19</a> of file <a class="el" href="_user_record_8cpp_source.html">UserRecord.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a349c0cd30f657e3f2e22ff9b3681b497"></a><!-- doxytag: member="AirlineRes::UserRecord::WriteRecord" ref="a349c0cd30f657e3f2e22ff9b3681b497" args="(std::ostream &amp;_stream) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">Record::RecordIOResult</a> AirlineRes::UserRecord::WriteRecord </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>_stream</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Attempt to write this <a class="el" href="class_airline_res_1_1_record.html">Record</a> to the specified ostream.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_stream</td><td>The ostream to write record fields to.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Implements <a class="el" href="class_airline_res_1_1_record.html#affd38c74f5c4ce2c69bd7d527b90b5e2">AirlineRes::Record</a>.</p>

<p>Definition at line <a class="el" href="_user_record_8cpp_source.html#l00029">29</a> of file <a class="el" href="_user_record_8cpp_source.html">UserRecord.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/Joe/Development/Projects/University/FormalMethods/airline-res/include/<a class="el" href="_user_record_8h_source.html">UserRecord.h</a></li>
<li>C:/Users/Joe/Development/Projects/University/FormalMethods/airline-res/src/<a class="el" href="_user_record_8cpp_source.html">UserRecord.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Dec 14 2011 22:49:42 for airline-res by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
